package com.xuln.mail;

import java.util.Map;

public class Message {
	/** 邮件发送者 */
	private String from;
	/** 邮件接收者，用于个人 */
	private String recipient;
	/** 邮件接收者，用于多人 */
	private String[] recipients;
	/** 邮件标题 */
	private String subject;
	/** 邮件内容 */
	private String content;
	/** 邮件模板路径 */
	private String templateName;
	/** 邮件模板参数 */
	@SuppressWarnings("unchecked")
	private Map templateModel;
	/** 是否是html邮件 */
	private boolean htmlMail;

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getFrom() {
		return from;
	}

	public String getContent() {
		return content;
	}

	public String getRecipient() {
		return recipient;
	}

	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String[] getRecipients() {
		return recipients;
	}

	public void setRecipients(String[] recipients) {
		this.recipients = recipients;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public String getTemplateName() {
		return templateName;
	}

	@SuppressWarnings("unchecked")
	public void setTemplateModel(Map templateModel) {
		this.templateModel = templateModel;
	}

	@SuppressWarnings("unchecked")
	public Map getTemplateModel() {
		return templateModel;
	}

	public void setHtmlMail(boolean htmlContent) {
		this.htmlMail = htmlContent;
	}

	public boolean isHtmlMail() {
		return htmlMail;
	}
}
